//
//  UIButton+AYExtension.h
//  AYExtension
//
//  Created by AY on 16/8/2.
//  Copyright © 2016年 Alex. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (AYExtension)

/// 连接符,没啥实际意义,蛋疼的时候可以无限.set....
- (instancetype)set;

+ (instancetype)button;
/// 设置普通状态标题
- (UIButton *(^)(NSString *))normalTitle;

/// 设置选中状态标题
- (UIButton *(^)(NSString *))selectedTitle;

/// 设置高亮状态标题
- (UIButton *(^)(NSString *))highlightTitle;

/// 设置普通状态图片
- (UIButton *(^)(UIImage *))normalImage;

/// 设置选中状态图片
- (UIButton *(^)(UIImage *))selectedImage;

/// 设置高亮状态图片
- (UIButton *(^)(UIImage *))highlightedImage;

/// 设置普通状态背景图片
- (UIButton *(^)(UIImage *))normalBackgroundImage;

/// 设置高亮状态背景图片
- (UIButton *(^)(UIImage *))highlightedBackgroundImage;

/// 设置选中状态背景图片
- (UIButton *(^)(UIImage *))selectedBackgroundImage;

@end
